import QtQuick 1.1
import com.nokia.symbian 1.1

import "cores.js" as Cores

Window {
    id: window

    Rectangle {
        width: parent.width; height: parent.height
        color: Cores.COR_FUNDO
    }

    StatusBar {
        id: statusBar
        anchors.top: parent.top       

        Text {
            id: txtStatusInfo
            color: "white"
            anchors { left: parent.left; leftMargin: 5 }
            text: vagasModel.quantidadeVagas + " vaga(s)"
            visible: (pageStack.currentPage != null && pageStack.currentPage.objectName == "VagasPage")
        }
    }    

    PageStack {
        id: pageStack
        toolBar: toolBar
        anchors { left: parent.left; right: parent.right; top: statusBar.bottom; bottom: toolBar.top }
        clip: true
    }

    ToolBar {
        id: toolBar
        anchors.bottom: parent.bottom
    }

    CarregandoPaginasIndicator {
        width: 150; height: 70;
        anchors { top: statusBar.bottom; right: parent.right;  margins: 10 }
        opacity: 0.77
    }

    Component.onCompleted: {
        pageStack.push(Qt.resolvedUrl("MainPage.qml"))
    }
}
